package com.zxx.pattern.interpretPattern.interpret;

/**
 * @author zxx on 2021/2/24
 */
public class TestInterpret {

    public static void main(String[] args) {
        String statement = "3 * 2 * 6 / 6 % 5";
        Calculator calculator = new Calculator();
        calculator.build(statement);

        int result = calculator.compute();

        System.out.println(statement + " = " + result);
    }

}
